/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.bulk.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 团购Entity
 * @author AlanShelby
 * @version 2019-09-27
 */
public class ElecBulkManage extends DataEntity<ElecBulkManage> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 团购名称
	private Double electricity;		// 本期电量
	private Long number;		// 可参团数量
	private Date beginDate;		// 团购开始时间
	private Date endDate;		// 团购结束时间
	private String bulkStatus;		// 团购状态
	
	public ElecBulkManage() {
		super();
	}

	public ElecBulkManage(String id){
		super();
		this.id = id;
	}

	@Length(min=0, max=64, message="团购名称长度不能超过 64 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Double getElectricity() {
		return electricity;
	}

	public void setElectricity(Double electricity) {
		this.electricity = electricity;
	}
	
	public Long getNumber() {
		return number;
	}

	public void setNumber(Long number) {
		this.number = number;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Length(min=0, max=1, message="团购状态长度不能超过 1 个字符")
	public String getBulkStatus() {
		return bulkStatus;
	}

	public void setBulkStatus(String bulkStatus) {
		this.bulkStatus = bulkStatus;
	}
	
}